package com.cmxh.shipper.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration
@Component
public class SpringmvcConfig {
    @Bean
    public CommonsMultipartResolver multipartResolver(){
        CommonsMultipartResolver xx = new CommonsMultipartResolver();
        xx.setMaxUploadSize(10485760);
        xx.setMaxInMemorySize(1048576);
        return xx;
    }
}
